#include <cstdio>

int main( )
{
    int i, n, a, b, c;
    scanf("%d", &n);
    for ( i = 1; i <= n; i++ )
    {
        scanf("%d%d%d", &a, &b, &c);
        a *= a; b *= b; c *= c;
        printf("Scenario #%d:\n", i);
        if ( a + b == c || a + c == b || b + c == a )
            puts("yes");
        else
            puts("no");
        printf("\n");
    }
    return 0;
}
